package com.usercenter.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 普通用户个人资料扩展
 * @TableName user_profile
 */
@TableName(value ="user_profile")
@Data
@EqualsAndHashCode(callSuper = true)
public class UserProfileExtendEntity extends UserProfileEntity {
    /**
     * 用户ID
     */
    @TableId(value = "user_openid")
    private String openid;

    /**
     * 收货地址
     */
    @TableField(value = "delivery_address")
    private String deliveryAddress;

    /**
     * 偏好设置（JSON格式）
     */
    @TableField(value = "preferences")
    private String preferences;

    /**
     * 紧急联系人
     */
    @TableField(value = "emergency_contact")
    private String emergencyContact;

    /**
     * 联系电话
     */
    @TableField(value = "phone")
    private String phone;
} 